//
//  JYPayResultHeaderView.m
//  JYFarm
//
//  Created by 花花 on 2017/10/30.
//  Copyright © 2017年 花花. All rights reserved.
//

#import "JYPayResultSuccessView.h"


@interface JYPayResultSuccessView()

@property(nonatomic)UIButton *paySuccessBtn;
@property(nonatomic)UILabel *moneyLabel;

@end
@implementation JYPayResultSuccessView


- (instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {

        
        [self setupSubView];
    }

    return self;
}

- (void)setupSubView{

    [self addSubview:self.paySuccessBtn];
    
    [self addSubview:self.moneyLabel];

}


- (UIButton *)paySuccessBtn{


    if (!_paySuccessBtn) {
        _paySuccessBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_paySuccessBtn setImage:[UIImage imageNamed:@"shopping_cart_select_click"] forState:UIControlStateNormal];
        [_paySuccessBtn setTitle:@"订单支付成功" forState:UIControlStateNormal];
    }
    
    return _paySuccessBtn;
    

}

@end
